package Work4.Slay_the_Maze.Monsters;

import java.util.Random;
import java.util.ArrayList;
import Work4.Slay_the_Maze.Monsters.*;
import Work4.Slay_the_Maze.Potions.Armorpotion;
import Work4.Slay_the_Maze.Potions.HPpotion;
import Work4.Slay_the_Maze.Potions.Manapotion;

public class MonstersPool {
	private ArrayList<Monster> monsterspool=new ArrayList<Monster>();
	public MonstersPool(){
		monsterspool.add(new Goblin());
		monsterspool.add(new Slime());
		//monsterspool.add(new Manapotion());
		//cardspool.add(new Shop());
		//cardspool.add(new TreasureEvent());
	}
	public MonstersPool(boolean type){
		if(!type) {
			monsterspool.add(new Demon());
		}else {
			monsterspool.add(new Goblin());
			monsterspool.add(new Slime());
		}
		//cardspool.add(new Shop());
		//cardspool.add(new TreasureEvent());
	}
	
	public ArrayList<Monster> getMonstersPool() {
		return monsterspool;
	}
	public void setMonstersPool(ArrayList<Monster> monsterspool) {
		this.monsterspool = monsterspool;
	}
	public void addMonster(Monster monster) {
		monsterspool.add(monster);
	}
	public Monster RandomgetMonster() {
		Random rd=new Random();
		return monsterspool.get(rd.nextInt(monsterspool.size()));
	}
}